package com.daylightrobbery.server.packet.game.player;

import com.daylightrobbery.server.packet.type.DataPacket;
import com.daylightrobbery.server.packet.type.MulticastDataPacket;
import com.daylightrobbery.server.packet.type.RoomDataPacket;
import org.springframework.stereotype.Component;

@Component
public class MoneyChangePacket implements RoomDataPacket {

    public int type = 80002;
    public String uid;
    public int roomId;
    public int money;
    public boolean add;


    @Override
    public DataPacket process() {
        return this;
    }

    @Override
    public int getType() {
        return type;
    }

    public String getUid() {
        return uid;
    }

    public MoneyChangePacket setUid(String uid) {
        this.uid = uid;
        return this;
    }

    public int getRoomId() {
        return roomId;
    }

    public MoneyChangePacket setRoomId(int roomId) {
        this.roomId = roomId;
        return this;
    }

    public int getMoney() {
        return money;
    }

    public MoneyChangePacket setMoney(int money) {
        this.money = money;
        return this;
    }

    public boolean isAdd() {
        return add;
    }

    public MoneyChangePacket setAdd(boolean add) {
        this.add = add;
        return this;
    }
}
